# AACE Alexa Platform

set(HEADERS
    ${CMAKE_CURRENT_SOURCE_DIR}/include/AACE/Alexa/Alerts.h
    ${CMAKE_CURRENT_SOURCE_DIR}/include/AACE/Alexa/Notifications.h
    ${CMAKE_CURRENT_SOURCE_DIR}/include/AACE/Alexa/AlexaClient.h
    ${CMAKE_CURRENT_SOURCE_DIR}/include/AACE/Alexa/AlexaConfiguration.h
    ${CMAKE_CURRENT_SOURCE_DIR}/include/AACE/Alexa/AlexaEngineInterfaces.h
    ${CMAKE_CURRENT_SOURCE_DIR}/include/AACE/Alexa/AudioPlayer.h
    ${CMAKE_CURRENT_SOURCE_DIR}/include/AACE/Alexa/EqualizerController.h
    ${CMAKE_CURRENT_SOURCE_DIR}/include/AACE/Alexa/PlaybackController.h
    ${CMAKE_CURRENT_SOURCE_DIR}/include/AACE/Alexa/SpeechRecognizer.h
    ${CMAKE_CURRENT_SOURCE_DIR}/include/AACE/Alexa/SpeechSynthesizer.h
    ${CMAKE_CURRENT_SOURCE_DIR}/include/AACE/Alexa/TemplateRuntime.h
    ${CMAKE_CURRENT_SOURCE_DIR}/include/AACE/Alexa/AuthProvider.h
    ${CMAKE_CURRENT_SOURCE_DIR}/include/AACE/Alexa/AlexaProperties.h
    ${CMAKE_CURRENT_SOURCE_DIR}/include/AACE/Alexa/ExternalMediaAdapter.h
    ${CMAKE_CURRENT_SOURCE_DIR}/include/AACE/Alexa/LocalMediaSource.h
    ${CMAKE_CURRENT_SOURCE_DIR}/include/AACE/Alexa/GlobalPreset.h
    ${CMAKE_CURRENT_SOURCE_DIR}/include/AACE/Alexa/AlexaSpeaker.h
    ${CMAKE_CURRENT_SOURCE_DIR}/include/AACE/Alexa/DoNotDisturb.h
)

source_group("Header Files" FILES ${HEADERS})

add_library(AACEAlexaPlatform SHARED
    ${HEADERS}
    ${CMAKE_CURRENT_SOURCE_DIR}/src/Alerts.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/src/Notifications.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/src/AlexaClient.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/src/AudioPlayer.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/src/EqualizerController.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/src/PlaybackController.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/src/SpeechRecognizer.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/src/SpeechSynthesizer.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/src/AuthProvider.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/src/TemplateRuntime.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/src/ExternalMediaAdapter.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/src/LocalMediaSource.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/src/GlobalPreset.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/src/AlexaSpeaker.cpp
    ${CMAKE_CURRENT_SOURCE_DIR}/src/DoNotDisturb.cpp
)

target_include_directories(AACEAlexaPlatform
    PUBLIC
        $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
        $<INSTALL_INTERFACE:include>
)

target_link_libraries(AACEAlexaPlatform
    AACECorePlatform
)

install(
    TARGETS AACEAlexaPlatform
    DESTINATION lib
    EXPORT AACEAlexa
)

install(
    DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/include/AACE
    DESTINATION include
    FILES_MATCHING PATTERN "*.h"
)
